﻿using BlueDot.Mobile.Core;
using NavigationSample.UI;

namespace NavigationSample
{
    public class MainApplication : MobileApplication<MainShell>
    {
        #region Fields

        private string applicationName = "Main Application";

        #endregion

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the ScalperInternationalApplication class.
        /// </summary>
        public MainApplication()
        {
            Configuration = new InstantStartConfiguration();

            //read application so action will get registered if there are any.
            Add(WellKnownItems.MobileApplication, typeof (IMobileApplication), this);
        }

        #endregion

        #region Properties

        public override string Name
        {
            get { return applicationName; }
            set { applicationName = value; }
        }

        #endregion

        #region public

        public override void AddWorkflowDirector()
        {
            AddNew<MainWorkflowDirector, IWorkflowDirector>();
        }

        #endregion
    }
}